<div class="page-content">
    <div class="col-sm-6 pull-right">
        <span class="btn btn-sm btn-primary pull-right" onclick="javascript:window.location.href = 'info'">
            添加
            <i class="icon-reply icon-only"></i>
        </span>
    </div>
    <div class="page-header">
        <h1>
            {:model('menu')->getName()} {gt name="$Request.get.group_id" value="0"} [{:model('AdminGroup')->getGroupName($Request.get.group_id)}]{/gt}
        </h1>
    </div><!-- /.page-header -->

    <form class="form-horizontal" role="form" action="{:url('index')}" method="post" name="myfrom">
        <div  class="form-group" >
            <label class="control-label pull-left" style="margin-left: 20px;">断面名称：</label>
            <span  >
                <input type="text" class="col-xs-5 col-sm-2" value="{$posname}" name="posname" placeholder="请输入断面名称">
            </span>
            <label class="control-label pull-left" style="margin-left: 20px;">集团：</label>
            <span class="pull-left">
                <select name="com_id" style="width: 200px" class="col-xs-5 col-sm-2">
                    <option value="0" />请选择集团</option>
                    {foreach name="company" item="v"}
                    <option value="{$v.id}" {if condition="$v.id eq $com_id"}selected{/if}>{$v.name}</option>
                    {/foreach}
                </select>
            </span>

            <span class="btn btn-sm btn-primary pull-left" style="margin-left: 10px;" onclick="myfrom.submit()">搜素<i class="icon-reply icon-only"></i></span>
        </div>

    </form>
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row">
                <div class="col-xs-12">
                    <table id="simple-table" class="table  table-bordered table-hover">
                        <thead>
                        <tr>
                            <th class="detail-col">ID</th>
                            <th style="width: 150px;">企业</th>
                            <th>测次编号</th>
                            <th>样品编号</th>
                            <th style="width: 70px;">水系</th>
                            <th style="width: 70px;">河名</th>
                            <th style="width: 120px;">断面/样品名称</th>
                            <th style="width: 150px;">地址</th>
                            <th>采样方法</th>
                            <th>水位</th>
                            <th>流量</th>
                            <th>水面宽度</th>
                            <th>气温</th>
                            <th style="width: 110px;">采样人</th>
                            <th>采样时间</th>
                            <th style="width: 120px;">送样单位</th>
                            <th>收样人</th>
                            <th>收样时间</th>

                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>

                        <tbody>
                        {volist name="lists" id="vo"}
                        <tr>

                            <td>{$vo.id}</td>
                            <td>{$vo.company_name}</td>
                            <td>{$vo.numberost}</td>
                            <td>{$vo.sampleno}</td>
                            <td>{$vo.basin}</td>
                            <td>{$vo.rive_name}</td>
                            <td>{$vo.posname}</td>
                            <td>{$vo.address}</td>
                            <td>{:$samplingType[$vo['sampling_type']]}</td>
                            <td>{$vo.water_level}</td>
                            <td>{$vo.flow}</td>
                            <td>{$vo.width_water}</td>
                            <td>{$vo.air_temper}</td>
                            <td>{$vo.sample_person}</td>
                            <td>{:date("Y-m-d",$vo['sample_time'])}</td>
                            <td>{$vo.sample_unit}</td>
                            <td>{$vo.collector_person}</td>
                            <td>{if condition="$vo['collector_time']"}{:date("Y-m-d",$vo['collector_time'])}{/if}</td>

<!--                            <td>{$vo.sampleqty}</td>-->
<!--                            <td>{$vo.samplesap}</td>-->
                            <td>{switch name="vo['status']"}{case value="1"}已采样{/case}{case value="2"}已收样{/case}{case value="3"}已分配{/case}{/switch}</td>

                            <td>

                                <a href='{:url("info","id=$vo[id]")}'>
                                    <span class="btn btn-xs btn-info">
                                                        编辑
                                    <i class="icon-reply icon-only"></i>
                                            </span>
                                </a>
                                <a href='javascript:void(0)' onclick="return alert_del('{:url(\"del\",\"id=$vo[id]\")}', '确认要删除这条记录吗？');"
                                <span class="btn btn-xs btn-danger">
                                                   删除
                                    <i class="icon-reply icon-only"></i>
                                            </span>
                                </a>
                            </td>

                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                   
                </div><!-- /.span -->
            </div><!-- /.row -->
            {$lists->render()}
            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->



